package com.tao.design.component;

import java.util.List;

/**
 * @projectName: DesignMode
 * @package: com.tao.design.component
 * @className: Employer
 * @author: TT_Hugo
 * @description: 定义Component 类Employer
 * @date: 2022/12/27 19:50
 * @version: 1.0
 */
public abstract class Employer {
    private String name;
    public abstract void add(Employer employer);
    public abstract void delete(Employer employer);

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Employer> employers;

    public void printInfo(){
        System.out.println(name);
    }

    public List<Employer> getEmployers(){
        return this.employers;
    }
}
